﻿using System;
using System.Collections.Generic;
using System.Text;

namespace adb
{
    public class StatisticsSinglevPowerStation
    {
        /// <summary>
        /// 电站所在公司名称
        /// </summary>
        public string companyName { get; set; } = string.Empty;
        /// <summary>
        /// 电站名称
        /// </summary>
        public string powerStationName { get; set; } = string.Empty;
        /// <summary>
        /// 电站编号
        /// </summary>
        public string powerStationNo { get; set; } = string.Empty;
        /// <summary>
        /// 公司概况
        /// </summary>
        public string companyDes { get; set; } = string.Empty;
        /// <summary>
        /// 电站类型名称
        /// </summary>
        public string powerStationTypeName { get; set; } = string.Empty;
        /// <summary>
        /// 所在城市区域名称
        /// </summary>
        public string cityName { get; set; } = string.Empty;
        /// <summary>
        /// 所在流域名称
        /// </summary>
        public string drainageName { get; set; } = string.Empty;
        /// <summary>
        /// 配置名称,最大50个中文字
        /// </summary>
        public string keyName { get; set; } = string.Empty;
        /// <summary>
        /// 上网电价
        /// </summary>
        public decimal upPrice { get; set; } = 0;
        /// <summary>
        /// 未知
        /// </summary>
        public Int32 MessageNotReadCount { get; set; } = 0;
        /// <summary>
        /// 排序,默认是倒序.
        /// </summary>
        public Int32 sort { get; set; } = 0;
        /// <summary>
        /// 数据状态,0表示正常,1表示表示删除,2表示停用
        /// </summary>
        public Int32 dataState { get; set; } = 0;
        /// <summary>
        /// 安全生产天数
        /// </summary>
        public Int32 securityDay { get; set; } = 0;
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? addTime { get; set; } = null;
        /// <summary>
        /// 电站进度
        /// </summary>
        public Int64 progress_keyId_fk { get; set; } = 0;
        /// <summary>
        /// 电站主键
        /// </summary>
        public Int64 powerStationId { get; set; } = 0;
        /// <summary>
        /// 所属流域
        /// </summary>
        public Int64 powerStationDrainageArea_keyId_fk { get; set; } = 0;
        /// <summary>
        /// 电站类型
        /// </summary>
        public Int64 powerStationType_keyId_fk { get; set; } = 0;
        /// <summary>
        /// 所属片区
        /// </summary>
        public Int64 powerStationArea_keyId_fk { get; set; } = 0;
        /// <summary>
        /// 所在城市区域
        /// </summary>
        public Int64 powerStationCity_keyId_fk { get; set; } = 0;
        /// <summary>
        /// 装机容量
        /// </summary>
        public decimal installed { get; set; } = 0;
        /// <summary>
        /// 所在省
        /// </summary>
        public string powerStationSheng_keyName { get; set; }
        /// <summary>
        /// 所在市
        /// </summary>
        public string powerStationShi_keyName { get; set; }
        /// <summary>
        /// 所在县
        /// </summary>
        public string powerStationXian_keyName { get; set; }

        public List<PowerStationDual> powerStationDuals { get; set; } = null;
    }

    public class PowerStationDual
    {
        public long powerStationId { get; set; } = -1;
        public string deviceGroup { get; set; } = null;
        public decimal installed { get; set; } = 0;
        public string deviceType { get; set; } = null;
    }
}
